package com.yanqu.road.server.cmd.activity.pawnshop;

import com.yanqu.road.pb.activity.PawnshopProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.pawnshop.PawnshopModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = GameProtocol.S_PAWNSHOP_BRAINWASH, desc = "请求对顾客洗脑")
public class PawnshopBrainwashCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		PawnshopProto.PawnshopBrainwashRespMsg.Builder msg = player.getModule(PawnshopModule.class).brainwash();
		player.sendPacket(Protocol.U_PAWNSHOP_BRAINWASH, msg);
	}

	@Override
	public void sendData(GamePlayer player) {

	}

}
